class CreateStocks < ActiveRecord::Migration
  def change
    create_table :stocks do |t|
      t.text :name, null: false
      t.decimal :price, null: false, precision: 8, scale: 2
      t.text :type, null: false
      t.integer :volume, null: false
      t.timestamp :time, null: false

      t.timestamps
    end
  end
end
